package com.example.srpingsecurityoauth2.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName LoginController
 * @Description
 * @Author gqz
 * @Date 2021/12/22 17:14
 * @Version 1.0
 **/
@Controller
public class LoginController {

    @RequestMapping("/sendToLoginPage")
    public String sendToLoginPage(){
        return "login";
    }

    @RequestMapping("/sendToSuccessPage")
    public String sendToSuccessPage(){
        return "success";
    }

}
